package cn.cgk.entity;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author 帅气逼人程序员
 * @version 1.0
 * @date 2023/2/23 - 11:24
 */
@Component //实例化对象,默认是类名首字母小写作为对象名称 person
@ConfigurationProperties(prefix = "person")//前缀
public class Person {
    private  String name;
    private  int age;
    private  String sex;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }
}
